package com.springboot.waf.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.springboot.waf.admin.dao.UserMapper;
import com.springboot.waf.admin.pojo.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: shaohai.huang
 * @date: 2019-11-04
 */

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public List<User> getAllUsers() {
        final List<User> users = userMapper.selectList(new QueryWrapper<User>());
        return users;
    }
}
